package conson.tech.manage.api.app.feign;

import conson.tech.core.constant.SecurityConstants;
import conson.tech.core.response.Response;
import conson.tech.manage.api.app.dto.AppConfigDTO;
import conson.tech.manage.api.app.dto.AppGroupConfigDTO;
import conson.tech.manage.api.app.dto.AppPageConfigDTO;
import conson.tech.manage.api.app.form.AppQueryForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * InterfaceName: AppMobileFeignService
 * Description: app端相关icon
 * Author: HXL
 * Date: 2020/6/3 2:05 下午
 * Version: 1.0
 */
@FeignClient(name = "manageApp", url = "${feignclient.manage-app.domain:}")
@RequestMapping(SecurityConstants.MOBILEAPI)
public interface AppMobileFeignService {

    @PostMapping("/queryDefault")
    Response<List<AppConfigDTO>> queryDefaultApp( @RequestBody AppQueryForm form);
    /**
     * Title: 查询-首页生活页
     * Description:
     * @param form
     * @return: conson.tech.core.response.Response<java.util.List<conson.tech.api.app.dto.AppPageConfigDTO>>
     * Company: GX
     * Author HXL
     * Date 2020/5/18 9:58 上午
     */
    @PostMapping("/queryPage")
    Response<List<AppPageConfigDTO>> appQueryPageInfo( @RequestBody AppQueryForm form);



    /**
     * Title:
     * Description: 查询分组应用-专题、功能应用
     * @param form
     * @return: conson.tech.core.response.Response<conson.tech.api.app.dto.AppGroupConfigDTO>
     * Company: GX
     * Author HXL
     * Date 2020/5/18 10:30 上午
     */
    @PostMapping("/queryGroup")
     Response<List<AppGroupConfigDTO>> appQueryGroup(@RequestBody AppQueryForm form);
    /**
     * Title: 查询信豆页
     * Description:
     * @param form
     * @return: conson.tech.core.response.Response
     * Company: GX
     * Author HXL
     * Date 2020/5/19 3:37 下午
     */
    @PostMapping("/queryLetterBean")
     Response<List<AppConfigDTO>> appQueryLetterBean(@RequestBody AppQueryForm form);
}
